package main

import (
	"fmt"
	"time"
)

type Arg struct {
}

// For hlm, min-repeat count is 5, 15500/132944
// For hlm, min-repeat count is 10, 8163/132944
// For hlm, min-repeat count is 20, 4108/132944
func main() {
	fmt.Println(time.Now())
	var lines []string = ReadLine("../samples/hlm.txt")
	var runelines [][]rune
	lc := len(lines)
	for i := 0; i < lc; i += 1 {
		runes := []rune(lines[i])
		runelines = append(runelines, runes)
	}
	itvn := new(Intervene)
	//minRepeat := 0
	//maxRepeat := 0
	dict1, dict2, charCount := Extract(runelines, itvn)
	fmt.Println("Dict1: ", len(dict1))
	fmt.Println("Dict2: ", len(dict2))
	fmt.Println("Word Count: ", Analyze(dict1, dict2, charCount))
	fmt.Println("Line Count: ", len(runelines))
	fmt.Println(time.Now())
}
